home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 46
/
Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso
/
-serious-
/
wb
/
ttmanager
/
rexx
/
ttm-showversion.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-09-06
|
982b
|
42 lines
/* $Ver: TTM-ShowVersion.rexx 1.1 (22.2.99) by J. Tierney
TTManager Show Version v1.1
2/22/99 J. Tierney <jtierney@cyberlink-inc.com>
Purpose: Displays the version number of the current file.
Usage: rx TTM-ShowVersion.rexx [UseDoVer]
<UseDoVer> - Optional. The script will use C:DoVer instead of C:Version.
*/
OPTIONS RESULTS
ADDRESS 'TTMANAGER'
ARG usedover
'GetFilename'
IF rc = 5 THEN EXIT 10
fname = '"' || result || '"'
IF usedover ~= '' THEN vercmd = 'C:C2/DoVer >PIPE:TTMGetVer' fname 'NOCOMM FMT "%n %v (%d.%m.%y)*n%e"'
ELSE vercmd = 'C:Version >PIPE:TTMGetVer' fname 'FULL'
ADDRESS COMMAND vercmd
IF ~Open('ver', 'PIPE:TTMGetVer', 'R') THEN EXIT 10
vl1 = READLN('ver')
vl2 = READLN('ver')
CALL CLOSE('ver')
IF usedover ~= '' THEN DO
/* Strip the "<filename> - " that DoVer outputs. */
l = LENGTH(fname) + 2
vl1 = SUBSTR(vl1, l)
END
IF vl2 ~= '' THEN vl1 = vl1 || '*n' || vl2
vl1 = '"' || vl1 || '"'
'RequestChoice TITLE Version BODY' vl1